<link href="__PUBLIC__/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<link href="__PUBLIC__/css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css"/>
<script src="__PUBLIC__/js/jquery-1.10.1.min.js" type="text/javascript"></script>
<script src="__PUBLIC__/js/jquery-migrate-1.2.1.min.js" type="text/javascript"></script>
<script src="__PUBLIC__/js/bootstrap.min.js" type="text/javascript"></script>
<style type="text/css">
   .wrap{overflow: hidden;} 
</style>
<div class="wrap">
<form action="#" method="get">
    <table class="table table-bordered table-condensed table-striped">
        <!-- <tr>
            <td>客户名称:<input type="text" name="name" value="{$_GET['name']}"/></td>
            <td>客户代码:<input type="text" name="phone" value="{$_GET['phone']}"/></td>
            <td>电话/手机:<input type="text" name="client_id" value="{$_GET['client_id']}"/></td>           
            <td><input type="submit" name="submit" value="查询" class="btn btn-primary"/></td>
        </tr> -->
    </table>
</form>
<table class="table">
    <thead>
        <tr>
            <th style="width: 100px !important;">名称</th>
            <th style="width: 100px !important;">添加时间</th>
            <th>内容</th>
            <th style="width: 60px !important;">操作</th>
        </tr>
    </thead>
    <tbody>
    	 
    <volist name="data" id="vo">
    	   <tr>
            <td>{$vo.title}</td>
            <td>{$vo.add_time|default=''|date='Y-m-d',###}</td>
            <td>{$vo.content}</td>
            <td><a href="" class="btn btn-primary selClient" data-taxrate="{$vo.content}" data-name="{$vo.name}">选取</ a></td>
        </tr>
    </volist>
</tbody>
</table>
</div>
<script> 
    var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
    $('.selClient').on('click', function () {
        var strs = parent.$('#buttons').val();
        strs = strs + $(this).attr('data-taxrate');
        parent.$('#buttons').val(strs);
        parent.layer.close(index);
    });
</script>